<template>
  <div id="app">
      

      <!--5.  路由出口  -->
      <router-view></router-view>


      <hr>

      <!-- 6. 路由导航  -->
      <p>
        <router-link :to="{name:'home'}">首页</router-link>
        <router-link :to="{name:'find'}">发现</router-link>
        <router-link :to="{name:'mine',query:{uid:2114}}">我的</router-link>
        <router-link :to="{name:'ajax'}">Ajax</router-link>
        <router-link :to="{name:'axios'}">Axios</router-link>
        <router-link :to="{name:'vuex'}">Vuex</router-link>



      </p>
  </div>
</template>

<style lang="scss" scoped >
  .router-link-exact-active, .router-link-active{
      font-size: 30px;
      font-weight: bold;
      color:#f50;
  }
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
